<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/common.jsp"%>
<%@ include file="/WEB-INF/views/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<link rel="stylesheet" type="text/css" href="/resources/css/style.css" />
	</head>
	<body>
		<div class="easyui-layout" fit="true">
			<div region="center" border="false" style="overflow-x:hidden">
				<div class="pd10">
					<div class="tableform">
						<form id="newsForm" method="post" enctype="multipart/form-data">
							<input type="hidden" id="state" name="state" value="${news.state}"/>
							<input type="hidden" id="id_newsId" name="newsId" value="${news.newsId}"/>
							<table cellspacing="0" cellpadding="0">
								<tr>
									<th width="50px;">
										<font color="red">*</font>标题：
									</th>
									<td>
										<input type="text" value="${news.title}" class="easyui-validatebox" style="width: 370px;  height: 25px;" name="title" id="id_title" data-options="required:true"/>
									</td>
								</tr>
								<tr>
									<th width="50px;">
										<font color="red">*</font>内容：
									</th>
									<td>
										<textarea id="editor_id" name="content" style="width: 780px; height: 350px;visibility:hidden;display: block;">${news.content}</textarea>
									</td>
								</tr>
							</table>
						</form>
					</div>
				</div>
			</div>
			<!--start：button区域-->
			<div region="south" style="height:36px; overflow:hidden;" border="false">
				<div class="WinBtnBody pdt5">
					<table align="center" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td>
								<a href="javascript:void(0)" onclick="EditNews.submitForm(1)" class="easyui-linkbutton" data-options="plain:true,iconCls:'add'">发布新闻</a>
							</td>
							<c:if test="${news.state == '0'}">
								<td>
									<a href="javascript:void(0)" onclick="EditNews.submitForm(0)" class="easyui-linkbutton" data-options="plain:true,iconCls:'add'">保存草稿</a>
								</td>
							</c:if>
							<td>
								<a href="javascript:void(0)" onclick="Ict.closeWin2()" class="easyui-linkbutton" data-options="plain:true,iconCls:'remove'">关闭</a>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		<!--end：button区域-->
		
		<!-- ==================页面操作JS================ -->
		<script charset="utf-8" src="/resources/js/common/kindeditor/kindeditor.js"></script>
		<script charset="utf-8" src="/resources/js/common/kindeditor/lang/zh_CN.js"></script>
		<script type="text/javascript" src="/resources/js/pc/news/edit.js"></script>
	</body>
</html>